import { ListColumns } from "@/api/interface/ListColumns";
import { EditColumns } from "@/api/interface/EditColumns";
import { requestSysDictionaryGetOptions } from "@/api/modules/sysDictionary";
	
	
	
	
	
	
	
	
	
	


//data.ts 该文件为自动生成，每次生成都会进行覆盖，请不要动该文件
export namespace UserAccount {
//字段名称enum
export enum Fields {
	id="id",
	avatar="avatar",
	wechat_open_id="wechat_open_id",
	mini_app_open_id="mini_app_open_id",
	username="username",
	password="password",
	status="status",
	created_at="created_at",
	updated_at="updated_at",

}

//[列表]字段配置数据列表
export const listColumnsData: ListColumns = new ListColumns(
{ type: "selection", fixed: "left", width: 70 },
	{ prop: "id", label: "ID",  align: "",isShow: true,tag: false },
	{ prop: "avatar", label: "头像",  align: "",isShow: true,tag: false },
	{ prop: "wechat_open_id", label: "微信openid",  align: "",isShow: true,tag: false },
	{ prop: "mini_app_open_id", label: "小程序openid",  align: "",isShow: true,tag: false },
	{ prop: "username", label: "用户名",  align: "",isShow: true,tag: false },
	{ prop: "password", label: "密码",  align: "",isShow: true,tag: false },
	{ prop: "status", label: "状态",  align: "",isShow: true,tag: false },
	{ prop: "created_at", label: "CreatedAt",  align: "",isShow: true,tag: false },
	{ prop: "updated_at", label: "UpdatedAt",  align: "",isShow: true,tag: false },


{prop: "operation", label: "操作", fixed: "right"}
);

//[创建]表单列默认配置
export const CreateColumnsData: EditColumns = new EditColumns(
	{ type: "input", title: "头像", col:{ span:12 }, field: "avatar", effect:{},props: {},validate:[{required: true, message: "必填项：头像(字符串类型)" }] },
	{ type: "input", title: "微信openid", col:{ span:12 }, field: "wechat_open_id", effect:{},props: {},validate:[{required: true, message: "必填项：微信openid(字符串类型)" }] },
	{ type: "input", title: "小程序openid", col:{ span:12 }, field: "mini_app_open_id", effect:{},props: {},validate:[{required: true, message: "必填项：小程序openid(字符串类型)" }] },
	{ type: "input", title: "用户名", col:{ span:12 }, field: "username", effect:{},props: {},validate:[{required: true, message: "必填项：用户名(字符串类型)" }] },
	{ type: "input", title: "密码", col:{ span:12 }, field: "password", effect:{},props: {},validate:[{required: true, message: "必填项：密码(字符串类型)" }] },
	{ type: "number", title: "状态", col:{ span:12 }, field: "status", effect:{},props: {},validate:[{required: true, message: "必填项：状态(数字类型)" }] },

);

//[修改]表单列默认配置
export const UpdateColumnsData: EditColumns = new EditColumns(
	{ type: "hidden", title: "ID", col:{ span:12 }, field: "id", effect:{},props: {},validate:[{required: true, message: "必填项：ID(数字类型)" }] },
	{ type: "input", title: "头像", col:{ span:12 }, field: "avatar", effect:{},props: {},validate:[{required: true, message: "必填项：头像(字符串类型)" }] },
	{ type: "input", title: "微信openid", col:{ span:12 }, field: "wechat_open_id", effect:{},props: {},validate:[{required: true, message: "必填项：微信openid(字符串类型)" }] },
	{ type: "input", title: "小程序openid", col:{ span:12 }, field: "mini_app_open_id", effect:{},props: {},validate:[{required: true, message: "必填项：小程序openid(字符串类型)" }] },
	{ type: "input", title: "用户名", col:{ span:12 }, field: "username", effect:{},props: {},validate:[{required: true, message: "必填项：用户名(字符串类型)" }] },
	{ type: "input", title: "密码", col:{ span:12 }, field: "password", effect:{},props: {},validate:[{required: true, message: "必填项：密码(字符串类型)" }] },
	{ type: "number", title: "状态", col:{ span:12 }, field: "status", effect:{},props: {},validate:[{required: true, message: "必填项：状态(数字类型)" }] },

);
}

